package com.example.demo.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.example.demo.service.EmpService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by wangmu on 2018/1/29.
 */
@RestController
@RequestMapping("/emp")
public class EmpController {

    @Reference(version = "1.0.10")
    private EmpService empService;

    @RequestMapping("/searchEmpInfoByName")
    public Object searchEmpInfoByName(String name,Integer pageNo,Integer pageSize) {
        return empService.searchEmpInfoByName(name,pageNo,pageSize);
    }
}
